package com.monitor.action.user;

import java.io.InputStream;

import com.monitor.action.MonitorActionSupport;

public class DownloadAction extends MonitorActionSupport {
	private static final long serialVersionUID = -9146215555340790968L;
	private String filename;

	@Override
	public String execute() throws Exception {
		return SUCCESS;
	}

	public InputStream getInputStream() throws Exception {
		return mContext.getResourceAsStream("/" + filename);
	}

	public String getFilename() {
		return filename;
	}

	public void setFilename(String filename) {
		this.filename = filename;
	}

}
